﻿using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.game
{
    public class ReadyToStartTheGameRet : Message
    {
        public static int TYPE = 12;
        public static int ID = 2;

        public int LocationIndex { get; set; }

        public int CurrentNumberOfGames { get; set; }

        public void decode(Input _in)
        {
            CurrentNumberOfGames = _in.readInt();
            LocationIndex = _in.readInt();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public int getMessageId()
        {
            return ID;
        }

        public string toString()
        {
            return "ReadyToStartTheGameRet [currentChapter=" + CurrentNumberOfGames + "UserID=" + LocationIndex +
                   "]";
        }
    }
}